const path = require('path');

module.exports = {
  entry: './src/index.js',
  mode: 'production',
  output: {
    library: 'wc',
    libraryTarget: 'umd',
    filename: 'index.js',
    path: path.resolve(__dirname, '../', 'dist'),
  },
  module: {
    rules: [
      {
        test: /\.vue$/,
        use: [
          {
            loader: path.resolve(__dirname, '../loader/vue-loader.js'),
            options: {
              /* ... */
            },
          },
        ],
      }
    ],
  },
};